package com.lord.base.ws.spring;

import java.util.List;

import javax.annotation.Resource;

import com.lord.model.User;
import com.lord.service.IUserService;

public class MessageServiceImpl implements IMessageService {
	
	private IUserService userService;
	
	public IUserService getUserService() {
		return userService;
	}
	
	//@Resource
	public void setUserService(IUserService userService) {
		this.userService = userService;
	}

	@Override
	public String getMessage(String text) {
		System.out.println("从客户端传入的数据：" + text);
		return "从服务端返回的数据： " + text + "^_^";
	}
	
	@Override
	public List<User> findAllUser(String text) {
		System.out.println("从客户端传入的数据：" + text);
		userService.findAllUser();
		return userService.findAllUser();
	}

}
